<!-- new modules -->
<?php
        if (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_GET['pg'] == ''){
            echo '<div class="cb"><img src="../../templates/default/images/corner-exterior-jos.png" width="25" height="15"></div>';
            echo '<table id="os0" cellpadding="0" cellspacing="0" width="100%" border="0">';
        } else {
            echo '<div class="cb"><img src="../../templates/default/images/corner-exterior-jos_var.png" width="25" height="15"></div>';
            echo '<table id="os0_var" cellpadding="0" cellspacing="0" width="100%" border="0">';
        }
?>
    <tr>
        <td id="os1" valign="top">
        <!-- oferte speciale ////////////////////////////////////// -->
            <div id="oferte_root">
<!--            <div class="os_titlu"><?php //echo $qrow['m_title']?></div>-->
        <?php $query = mysql_query("select * from dt_modules where `type`='ofertespeciale' and `m_visible`='1' and `m_id` ='".$sRow['m_id']."'");
            while ($qrow = mysql_fetch_array($query)){echo '<div class="os_titlu"><a href="../../categories/3/oferte_speciale.html">'.$qrow['m_title'].'</a></div>';}?>

            <?php
            $q3 = mysql_query("select * from dt_oferte_speciale where m_id = '".$sRow['m_id']."'");
            while ($q3row = mysql_fetch_array($q3)){
                $q4 = mysql_query("select * from dt_offers where o_id = '".$q3row['o_id']."'");
                while ($q4row = mysql_fetch_array($q4)){
                        echo '<div class="os_descriere">'.$q4row['o_title'].' <a href="offers/'.$q4row['c_id'].'/'.$q4row['o_id'].'/'.cleanitup($q4row['o_title']).'.html">'.$q4row['o_label'].'</a></div>';

                        $photos = mysql_query("select * from dt_offers_photos where o_id = '".$q4row['o_id']."'");
                        $photoRow = mysql_fetch_array($photos);

                        if ($photoRow['oImg_file'] != '')
                            echo '<div class="os_poza">';
                        if (!empty ($q4row['o_price']))
                            echo '<div class="OS_price_home"><div class="OSHH1">'.$q4row['o_price'].'</div><div class="OSHH2">'.$q4row['o_price_type'].'</div></div>';
                            echo '<a href="../../offers/'.$q4row['c_id'].'/'.$q4row['o_id'].'/'.cleanitup($q4row['o_title']).'.html">';
                            echo '<img src="../../uploads/offers/img/' . cleanitup($q4row['o_title']) . "/thumbs/thumb_" . $photoRow['oImg_file'] . '" width="155" height="110">';
                            echo '</a>';
                            echo '</div>';
                        echo '<br />';
                } ?>
            </div>
            <?php }?>
                </td>
        <td id="os2" valign="top"><img alt="" src="../../templates/default/images/corner-meniu-sus.png" width="25" height="25" /></td>
    </tr>
</table>
<div class="cb">
    <?php
        if (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_GET['pg'] == ''){
                echo '<img src="../../templates/default/images/corner-exterior-sus.png" width="25" height="15" />';
        } else {
                echo '<img src="../../templates/default/images/corner-exterior-sus_var.png" width="25" height="15" />';
        }
    ?>
</div>